const path = require('path')
const HtmlWebpackPlugin = require('html-webpack-plugin')
module.exports = {
    entry: './js/index.js',
    output: {
        filename: 'index.js',
        path: path.resolve(__dirname, 'dist')
    },
    module: {
        rules: [

        ]
    },
    plugins: [
        new HtmlWebpackPlugin({
            template: "./index.html"
        }),
    ],
    mode: 'development',
    externals: {
        //拒绝当前包打包  打包后 需要自行cnd链接引入
        //忽略库名，---npm 包名
        jquery: 'jQuery'
    }
}